// 提供首页api接口
import request from '@/utils/request'
export const findBrand = (limit = 6) => { // 默认值6，传值再说
  return request('/home/brand', 'get', { limit }) // 传变量就行不用对象
}
// 获取轮播图
export const findBanner = () => {
  return request('/home/banner', 'get')
}
// 获取新鲜好物
export const getNew = () => {
  return request('/home/new', 'get')
}
// 获取人气推荐
export const getHot = () => {
  return request('/home/hot', 'get')
}

// 获取产品板块
export const getProduct = () => {
  return request('/home/goods', 'get')
}

// 获取最新专题
export const getSpecial = () => {
  return request('/home/special', 'get')
}
